# 初始编辑器项目（可后续扩展）
add_library(SCION_CORE STATIC
    core/ECS/Entity.cpp
    core/ECS/Entity.inl
    core/ECS/Registry.cpp
    core/Resources/AssetManager.cpp
    core/Systems/ScriptSystem.cpp
    core/Systems/RenderSystem.cpp
)

# 包含目录设置
target_include_directories(SCION_CORE PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/core/Components
    ${CMAKE_CURRENT_SOURCE_DIR}/core/AssetManager
    ${CMAKE_CURRENT_SOURCE_DIR}/core/Systems
)

# 依赖窗口和工具
target_link_libraries(SCION_CORE
    PRIVATE
        SCION_UTILITIES
        SCION_RENDERING
        SDL3::SDL3
        glm::glm
        GLAD
        soil2
        # spdlog::spdlog
        spdlog::spdlog_header_only
        EnTT::EnTT
        sol2::sol2
)

# 如果有预编译头，确保包含
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../scion_utilities/hzpch.h")
    target_precompile_headers(SCION_RENDERING PRIVATE "../scion_utilities/hzpch.h")
endif()